package com.peppa.petshop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张三
 * @since 2021-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Cart implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cart_id", type = IdType.AUTO)
    private Integer cartId;

    private Integer customer;

    private Integer good;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private Integer amount;

    public Cart() {
    }

    public Cart(Integer cartId, Integer customer, Integer good, LocalDateTime createTime, Integer amount) {
        this.cartId = cartId;
        this.customer = customer;
        this.good = good;
        this.createTime = createTime;
        this.amount = amount;
    }
}
